﻿namespace Oplug.EntityFramework.RossLive
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("DataView")]
    public partial class DataView : IEntity<long>
    {
        public long ID { get; set; }

        [Required]
        [StringLength(50)]
        public string ViewName { get; set; }
        [Required]
        [StringLength(50)]
        public string DisplayName { get; set; }

        [StringLength(200)]
        public string Memo { get; set; }

        [StringLength(8)]
        public string ViewType { get; set; }        

        public DateTime CreateTime { get; set; }

        [StringLength(20)]
        public string CreateUser { get; set; }

        [Required]
        [Column(TypeName = "text")]
        public string SQLText { get; set; }
        

    }
}
